//
//  JSSearchLabelView.h
//  JSBasicFramework
//
//  Created by Apple on 2018/9/12.
//  Copyright © 2018年 Apple. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JSHistoryModel.h"


@protocol JSSearchLabelViewDelegate <NSObject>

@optional
-(void)didSelectItem:(id)item;


@end

@interface JSSearchLabelView : UIView

@property (nonatomic, copy) void(^DidSelectItem)(id item);
@property (nonatomic, weak) id<JSSearchLabelViewDelegate>delegate;
@property (nonatomic, strong) NSArray <id<JSSearchLabelProtcol>>*historyArrray;
@property (nonatomic, strong) NSArray <id<JSSearchLabelProtcol>>*hotArray;
@property (nonatomic, strong) UIColor *nomarlColor; // 表情颜色

-(void)appendHistorys:(NSArray <id<JSSearchLabelProtcol>>*)objs;
-(void)appendHots:(NSArray <id<JSSearchLabelProtcol>>*)objs;
-(void)clearanceHistory;
-(void)loadHistoryData; // 加载历史记录


@end
